package presistencia.interfaces;

import java.sql.SQLException;
import java.util.List;

import beans.Bean;

public interface DAO <T extends Bean> {

	long inserir(T objeto) throws SQLException;
	void deletar(T objeto) throws SQLException;
	void atualizar(T objeto) throws SQLException;
	T buscarID(long id) throws SQLException;
	List<T> buscarTodos() throws SQLException;
	
}
